home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: How to test a random generator ?
- Date: 23 Jan 1996 13:55:36 -0800
- Organization: CRL Dialup Internet Access
- Message-ID: <4e3lgo$1eh@crl.crl.com>
- References: <4e2q7g$oe@centre.univ-orleans.fr>
- NNTP-Posting-Host: crl.com
-
- emmguyot@desiree.univ-orleans.fr (Emmanuel GUYOT) writes:
-
- >How can I test a random generator ?
- >I need to verify that my random generator is really
- >random. Can you tell me a way to test this ?
-
- In the strictest sense, your random generator is NOT truly random. Given
- sufficient information about the state, it's almost guaranteed to be
- repeatable, which contradicts the mathematical definition of 'random.'
-
- However, there are a number of tests you can make that will measure
- different aspects of randomness. Knuth's "Art of Computer Programming"
- has a number of elementary tests, and literally hundreds more have been
- published since then. Knuth is a good place to start, and a mathematician
- (or many good statistics books) can make further suggestions. The FAQ
- also has some further information.
-
- Bob
-